var x = document.createElement('script');

var language = window.navigator.userLanguage || window.navigator.language;

switch (language)
{
	case 'fr':
		x.src = 'Resources/Scripts/globalization/translation-'+ language +'.js';
		break;
	default:
		x.src = 'Resources/Scripts/globalization/translation-en.js';
		break;
}

document.getElementsByTagName("head")[0].appendChild(x);